package org.jeecg.modules.wlhy.hypfaccount.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: hy_pf_account
 * @Author: jeecg-boot
 * @Date:   2022-05-30
 * @Version: V1.0
 */
@Data
@TableName("hy_pf_account")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="hy_pf_account对象", description="hy_pf_account")
public class HyPfAccount implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**1系统用户 2 货主 3 货主子账号  4 司机 5车队长*/
	@Excel(name = "1系统用户 2 货主 3 货主子账号  4 司机 5车队长 9分公司", width = 15)
    @ApiModelProperty(value = "1系统用户 2 货主 3 货主子账号  4 司机 5车队长 9分公司")
    private String utype;
	/**根据utype=2货主id；=4司机id；=5车队长id*/
	@Excel(name = "根据utype=2货主id；=4司机id；=5车队长id ;=9分公司id", width = 15)
    @ApiModelProperty(value = "根据utype=2货主id；=4司机id；=5车队长id;=9分公司id")
    private String uid;
	/**userId*/
	@Excel(name = "userId", width = 15)
    @ApiModelProperty(value = "userId")
    private String userId;
	/**交易地区代码*/
	@Excel(name = "交易地区代码", width = 15)
    @ApiModelProperty(value = "交易地区代码")
    private String areaCode;
	/**监管账号*/
	@Excel(name = "监管账号", width = 15)
    @ApiModelProperty(value = "监管账号")
    private String acctNo;
	/**交易席位号*/
	@Excel(name = "交易席位号", width = 15)
    @ApiModelProperty(value = "交易席位号")
    private String bidsSnglFlgCd;
	/**证件类型*/
	@Excel(name = "证件类型", width = 15)
    @ApiModelProperty(value = "证件类型")
    private String ctfType;
	/**证件号码*/
	@Excel(name = "证件号码", width = 15)
    @ApiModelProperty(value = "证件号码")
    private String ctfId;
	/**客户名称*/
	@Excel(name = "客户名称", width = 15)
    @ApiModelProperty(value = "客户名称")
    private String clientName;
	/**开户行行号*/
	@Excel(name = "开户行行号", width = 15)
    @ApiModelProperty(value = "开户行行号")
    private String openBrNo;
	/**开户行名称*/
	@Excel(name = "开户行名称", width = 15)
    @ApiModelProperty(value = "开户行名称")
    private String openBranchName;
	/**基本账户账号*/
	@Excel(name = "基本账户账号", width = 15)
    @ApiModelProperty(value = "基本账户账号")
    private String bscAcctNo;
	/**基本账户名称*/
	@Excel(name = "基本账户名称", width = 15)
    @ApiModelProperty(value = "基本账户名称")
    private String acctName;
	/**客户号*/
	@Excel(name = "客户号", width = 15)
    @ApiModelProperty(value = "客户号")
    private String pcpClntNo;
	/**子账户名*/
	@Excel(name = "子账户名", width = 15)
    @ApiModelProperty(value = "子账户名")
    private String childAcctNm;
	/**子账号*/
	@Excel(name = "子账号", width = 15)
    @ApiModelProperty(value = "子账号")
    private String childAcctNo;
	/**授权码*/
	@Excel(name = "授权码", width = 15)
    @ApiModelProperty(value = "授权码")
    private String authrCd;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**删除状态(0-正常,1-已删除)*/
    @TableLogic
    @ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
    private String delFlag;

    @TableField(exist = false)
    private String khh;

    //可用余额
    @TableField(exist = false)
    private String actualBal;

    //账户余额
    @TableField(exist = false)
    private String amt;

    //冻结金额
    @TableField(exist = false)
    private String freezeAmt;

    @TableField(exist = false)
    private String statusCode;

    @TableField(exist = false)
    private String statusMsg;
}
